#include <iostream>

using namespace std;



class A
{
public:
	A(int a, int b, int c)
	{
		cout <<"Constructors" <<endl;
		this->a = a;
		this->b = b;
		this->c = c;

	}

	~A()
	{
		cout <<"Destructor" <<endl;
	}
	friend void fun1(A &a);
	friend void fun2();

	void printc()
	{
		cout<<"a = "<<a<<" b = "<<b<<" c = "<<c<<endl;
	}
private:
	int a;
	int b;
	int c;
};


void fun1(A &a1)
{
	cout<<"a1.a  "<<a1.a<<endl;
};

void fun2()
{
	 A a(7,8,9);
	 a.printc();

	 a.a = 9;
	 a.printc();

};

int main(int argc, char* argv[])
{
	A a(1, 2, 3);

	fun1(a);

	fun2();

	cout <<argv[0]<<endl;
	
	system("pause");
	return 0;
}